﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TFS_2010_Warehouse_Updater.Properties;

namespace TFS_2010_Warehouse_Updater
{
    public partial class frmSettings : Form
    {
        public frmSettings()
        {
            InitializeComponent();
        }

        private void frmSettings_Load(object sender, EventArgs e)
        {
            txtServer.Text = Settings.Default.Server;
            txtPort.Text = Settings.Default.Port;
            txtCollection.Text = Settings.Default.Collection;
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            Settings.Default.Server = txtServer.Text;
            Settings.Default.Port = txtPort.Text;
            Settings.Default.Collection = txtCollection.Text;
            Settings.Default.Save();
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
